package com.jynet.thbb.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResBean {

    private long code;
    private String message;
    private Object data;

    public static ResBean success(String message){
        return new ResBean(200,message,null);
    }

    public static ResBean success(String message,Object object){
        return new ResBean(200,message,object);
    }

    public static ResBean error(String message){
        return new ResBean(500,message,null);
    }

}
